
                            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S	.r	S
 r
S r\R                  " \R                  R                  5       " S S\R                  5      5       r\R                  " \R                  R"                  5       " S S\5      5       r\R                  " \R                  R&                  5       " S S\5      5       rg)zCommand AnalyzeOrgPolicies API.    )absolute_import)division)unicode_literals)client_util)basez5    Analyze organization policies under a scope.
    z    To list 10 organization policies of a constraint in an organization, run:

      $ {command} --scope=organizations/YOUR_ORG_ID --constraint=YOUR_CONSTRAINT_NAME --limit=10
    )DESCRIPTIONEXAMPLESc                 (    U R                  SSSSS9  g )Nz--scopeSCOPETax          Scope can only be an organization. The analysis is
        limited to the Cloud organization policies within this scope. The caller must be
        granted the `cloudasset.assets.searchAllResources` permission on
        the desired scope.

        The allowed values are:

          * ```organizations/{ORGANIZATION_NUMBER}``` (e.g. ``organizations/123456'')
        metavarrequiredhelpadd_argumentparsers    )lib/surface/asset/analyze_org_policies.pyAddScopeArgumentr   (   s#    		      c                 (    U R                  SSSSS9  g )Nz--constraint
CONSTRAINTTaT          The name of the constraint to analyze organization policies for. The
        response only contains analyzed organization policies for the provided
        constraint.

        Example:

        * organizations/{ORGANIZATION_NUMBER}/customConstraints/{CUSTOM_CONSTRAINT_NAME}
          for a user-defined custom constraint.
        r   r   r   s    r   AddConstraintArgumentr   9   s#    		  r   c                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)AnalyzeOrgPoliciesM   ,Analyze organization policies under a scope.c                 n    [        U 5        [        U 5        [        R                  R	                  U 5        g Nr   r   r   URI_FLAGRemoveFromParserr   s    r   ArgsAnalyzeOrgPolicies.ArgsS   $    V&!MM""6*r   c                 N    [         R                  " 5       nUR                  U5      $ r   r   OrgPolicyAnalyzerClientr   selfargsclients      r   RunAnalyzeOrgPolicies.RunY   !    002F$$T**r    N__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr#   r-   __static_attributes__r0   r   r   r   r   M   !    4-+ +
+r   r   c                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)AnalyzeOrgPoliciesBeta^   r   c                 n    [        U 5        [        U 5        [        R                  R	                  U 5        g r   r    r   s    r   r#   AnalyzeOrgPoliciesBeta.Argsd   r%   r   c                 N    [         R                  " 5       nUR                  U5      $ r   r'   r)   s      r   r-   AnalyzeOrgPoliciesBeta.Runj   r/   r   r0   Nr1   r0   r   r   r=   r=   ^   r;   r   r=   c                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)AnalyzeOrgPoliciesGAo   r   c                 n    [        U 5        [        U 5        [        R                  R	                  U 5        g r   r    r   s    r   r#   AnalyzeOrgPoliciesGA.Argsu   r%   r   c                 N    [         R                  " 5       nUR                  U5      $ r   r'   r)   s      r   r-   AnalyzeOrgPoliciesGA.Run{   r/   r   r0   Nr1   r0   r   r   rD   rD   o   r;   r   rD   N)r6   
__future__r   r   r   googlecloudsdk.api_lib.assetr   googlecloudsdk.callioper   r7   r   r   ReleaseTracksReleaseTrackALPHAListCommandr   BETAr=   GArD   r0   r   r   <module>rS      s    & &  ' 4 (		"( D%%++,+)) + -+  D%%**++/ + ,+  D%%(()+- + *+r   