
                            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 AnalyzeOrgPolicyGovernedContainers API.    )absolute_import)division)unicode_literals)client_util)basezI    Analyze organization policies governed containers under a scope.
    z    To list 10 containers governed by 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SCOPETa          Scope can only be an organization. The analysis is
        limited to the Cloud organization policies and containers 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_policy_governed_containers.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)"AnalyzeOrgPolicyGovernedContainersM   @Analyze organization policies governed containers under a scope.c                 n    [        U 5        [        U 5        [        R                  R	                  U 5        g Nr   r   r   URI_FLAGRemoveFromParserr   s    r   Args'AnalyzeOrgPolicyGovernedContainers.ArgsS   $    V&!MM""6*r   c                 N    [         R                  " 5       nUR                  U5      $ r   r   OrgPolicyAnalyzerClientr   selfargsclients      r   Run&AnalyzeOrgPolicyGovernedContainers.RunY   !    002F44T::r    N__name__
__module____qualname____firstlineno____doc__DETAILED_HELPdetailed_helpstaticmethodr#   r-   __static_attributes__r0   r   r   r   r   M   !    H-+ +
;r   r   c                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)&AnalyzeOrgPolicyGovernedContainersBeta^   r   c                 n    [        U 5        [        U 5        [        R                  R	                  U 5        g r   r    r   s    r   r#   +AnalyzeOrgPolicyGovernedContainersBeta.Argse   r%   r   c                 N    [         R                  " 5       nUR                  U5      $ r   r'   r)   s      r   r-   *AnalyzeOrgPolicyGovernedContainersBeta.Runk   r/   r   r0   Nr1   r0   r   r   r=   r=   ^   s$     I-+ +
;r   r=   c                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)$AnalyzeOrgPolicyGovernedContainersGAp   r   c                 n    [        U 5        [        U 5        [        R                  R	                  U 5        g r   r    r   s    r   r#   )AnalyzeOrgPolicyGovernedContainersGA.Argsv   r%   r   c                 N    [         R                  " 5       nUR                  U5      $ r   r'   r)   s      r   r-   (AnalyzeOrgPolicyGovernedContainersGA.Run|   r/   r   r0   Nr1   r0   r   r   rD   rD   p   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    6 &  ' 4 (		"( D%%++,;)9)9 ; -;  D%%**+;-O ; ,;" D%%(();+M ; *;r   