
    V                        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  \R                  " \R                  R                  5      \R                    " S S\R"                  5      5       5       r\R                  " \R                  R&                  5      \R                    " S	 S
\R"                  5      5       5       rg)z8Command for listing an organization posture deployments.    )
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   PList the details of the Cloud Security Command Center (SCC) posture deployments.
          List the details of the Cloud Security Command Center (SCC) posture
          deployments for the specified organization.  
          To list Cloud Security Command Center posture deployments for organization `123` 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_deployments/list.pyArgs	List.Args2   &     	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'   postureDeployments)batch_size_attribute
batch_sizefield)scc_utilGetVersionFromArgumentssecurityposture_clientGetMessagesModuler   ReleaseTrackGAGetClientInstanceValidateAndGetLocationIsKnownAndSpecifiedIsSpecifiedr   InvalidSCCInputErrorr!    GetParentFromPositionalArgumentsBSecuritypostureOrganizationsLocationsPostureDeploymentsListRequestgetattrr   YieldFromList*organizations_locations_postureDeploymentsr%   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''$  YYtXt,{D1 Z G ##99'>>" r    N
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   rC   __static_attributes__rE   r   r   r	   r	      s8     Y9R-& ( ()r   r	   c                   :    \ rS rSrSrSSSS.r\S 5       rS rS	r	g
)	ListAlphaf   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   )r,   r-   r.   r/   r   r0   ALPHAr2   r3   r4   r5   r   r6   r!   r7   r8   r9   r   r:   r;   r%   r<   s           r   rC   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''$  YYtXt,{D1 Z G ##99'>>" r   rE   NrF   rE   r   r   rP   rP   f   s7     Y9:-" ( ()r   rP   N)rK   apitools.base.pyr   #googlecloudsdk.api_lib.scc.posturesr   r.   googlecloudsdk.callioper   googlecloudsdk.command_lib.sccr   r,   2googlecloudsdk.command_lib.scc.posture_deploymentsr   ReleaseTracksr0   r1   DefaultUniverseOnlyListCommandr	   rU   rP   rE   r   r   <module>r_      s    ? ( N ( 1 ; D D%%(()G4 G  *GT D%%++,E   E  -Er   