
                            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SKJr  SS	KJr  SSKJ	r  SS
KJr  \R$                  " \R&                  R(                  5      \R*                   " S S\R,                  5      5       5       r\R$                  " \R&                  R0                  5      \R*                   " S S\R,                  5      5       5       rg)z6Command for listing an organization posture templates.    )absolute_import)division)print_function)unicode_literals)
list_pager)util)base)errors)flagsc                   :    \ rS rSrSrSSSS.r\S 5       rS rS	r	g
)List   NList the details of the Cloud Security Command Center (SCC) posture templates.
          List the details of the Cloud Security Command Center (SCC) posture
          templates for the specified organization.  
          To list Cloud Security Command Center posture templates for organization `123` and in the `global` location, run:

            $ {command} organizations/123/locations/global

            $ {command} --organization=123 --location=global

            z
      This command uses the securityposture/v1 API. The full documentation for
    this API can be found at: https://cloud.google.com/security-command-centerDESCRIPTIONEXAMPLESzAPI REFERENCEc                 n    [         R                  R                  U 5        [        R                  " U 5        g Nr	   URI_FLAGRemoveFromParserr   AddParentOrFlagsGroupparsers    )lib/surface/scc/posture_templates/list.pyArgs	List.Args6   &     	MM""6* 
'    c           	      h   [         R                  " USS9n[        R                  " [        R
                  R                  5      n[        R                  " [        R
                  R                  5      n[         R                  " X5      nUR                  S5      (       aB  UR                  S5      (       a,  UR                  S5      (       a  [        R                  " S5      eUR                  S5      (       a  UR                  nO^UR                  S5      (       a2  UR                  S5      (       a  [         R                  " U5       SU 3nO[        R                  " S5      eUR                  U[!        US	S 5      [!        US
S 5      S9n["        R$                  " UR&                  USUR(                  SS9$ NT)"version_specific_existing_resourcePARENTorganizationlocationz^Cannot provide both a positional `PARENT` and argument (`--organization`, `--location`) flags.z/locations/zXMust provide either positional `PARENT` or both `--organization` and `--location` flags.filter	page_size)parentr(   pageSizer+   postureTemplates)batch_size_attribute
batch_sizefield)scc_utilGetVersionFromArgumentssecurityposture_clientGetMessagesModuler	   ReleaseTrackGAGetClientInstanceValidateAndGetLocationIsKnownAndSpecifiedIsSpecifiedr
   InvalidSCCInputErrorr%    GetParentFromPositionalArguments@SecuritypostureOrganizationsLocationsPostureTemplatesListRequestgetattrr   YieldFromList(organizations_locations_postureTemplatesr)   selfargsversionmessagesclientr'   r*   requests           r   RunList.Run>   s}   ..G &778I8I8L8LMH#55d6G6G6J6JKF..t=H  **((T-=-=j-I-I''4 
 	  **{{f


>
*
*t/?/?
/K/K;;DAB+hZXf''$  WWtXt,{D1 X G ##77'>>  r!    N
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   rG   __static_attributes__rI   r!   r   r   r      s8     W7R-& ( ()r!   r   c                   :    \ rS rSrSrSSSS.r\S 5       rS rS	r	g
)	ListAlphaj   r   r   r   z
      This command uses the securityposture/v1alpha API. The full documentation for this API can be found at:
      https://cloud.google.com/security-command-centerr   c                 n    [         R                  R                  U 5        [        R                  " U 5        g r   r   r   s    r   r   ListAlpha.Args   r    r!   c           	      h   [         R                  " USS9n[        R                  " [        R
                  R                  5      n[        R                  " [        R
                  R                  5      n[         R                  " X5      nUR                  S5      (       aB  UR                  S5      (       a,  UR                  S5      (       a  [        R                  " S5      eUR                  S5      (       a  UR                  nO^UR                  S5      (       a2  UR                  S5      (       a  [         R                  " U5       SU 3nO[        R                  " S5      eUR                  U[!        US	S 5      [!        US
S 5      S9n["        R$                  " UR&                  USUR(                  SS9$ r#   )r0   r1   r2   r3   r	   r4   ALPHAr6   r7   r8   r9   r
   r:   r%   r;   r<   r=   r   r>   r?   r)   r@   s           r   rG   ListAlpha.Run   s}   ..G &778I8I8O8OPH#55d6G6G6M6MNF..t=H  **((T-=-=j-I-I''4 
 	  **{{f


>
*
*t/?/?
/K/K;;DAB+hZXf''$  WWtXt,{D1 X G ##77'>>  r!   rI   NrJ   rI   r!   r   rT   rT   j   s7     W7:-" ( ()r!   rT   N)rO   
__future__r   r   r   r   apitools.base.pyr   #googlecloudsdk.api_lib.scc.posturesr   r2   googlecloudsdk.callioper	   googlecloudsdk.command_lib.sccr
   r0   0googlecloudsdk.command_lib.scc.posture_templatesr   ReleaseTracksr4   r5   DefaultUniverseOnlyListCommandr   rY   rT   rI   r!   r   <module>rd      s    = &  % ' ' N ( 1 ; B D%%(()G4 G  *GT D%%++,E   E  -Er!   