
    u
                        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  \R                  " \R                  R                   5      \R"                   " S
 S\R$                  5      5       5       rg)zPCommand for listing a Cloud Security Command Center RemediationIntent resources.    )absolute_import)division)print_function)unicode_literals)
list_pager)sps_api)base)flagsc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
List   z'Lists the remediation intent resources.z
        Lists the Cloud Security Command Center (SCC)
        RemediationIntent resources.
        List of resources is returned as the response of the command.z
          Sample usage:
          List all remediation intent resource under parent organizations/123456789/locations/global:
          $ {{command}} scc remediation-intents list organizations/123456789/locations/global
          )DESCRIPTIONEXAMPLESc                 x    [         R                  R                  U 5        U R                  R	                  S5        g )Nztable(name))r
   POSITIONAL_PARENT_NAME_FLAGAddToParserdisplay_info	AddFormat)parsers    +lib/surface/scc/remediation_intents/list.pyArgs	List.Args.   s*    	%%11&9
!!-0    c                 Z   [         R                  " [        R                  R                  5      n[         R
                  " [        R                  R                  5      nUR                  UR                  UR                  S9n[        R                  " UR                  USUR                  SS9$ )zThe main function which is called when the user runs this command.

Args:
  args: an argparse namespace. All the arguments that were provided to this
    command invocation.
Returns:
  List of remediation intent resources as per the request.
)parentfilterremediationIntentspageSize)fieldlimitbatch_size_attribute)r   GetClientInstancer	   ReleaseTrackALPHAGetMessagesModuleBSecuritypostureOrganizationsLocationsRemediationIntentsListRequestr   r   r   YieldFromList*organizations_locations_remediationIntentsr    )selfargsclientmessagesrequests        r   RunList.Run3   s     &&t'8'8'>'>?F(():):)@)@AH YY{{{{ Z G
 ##99"jj') )r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r.   __static_attributes__r0   r   r   r   r      s2     0I
- 1 1)r   r   N)r5   
__future__r   r   r   r   apitools.base.pyr   .googlecloudsdk.api_lib.scc.remediation_intentsr   googlecloudsdk.callioper	   2googlecloudsdk.command_lib.scc.remediation_intentsr
   ReleaseTracksr#   r$   UniverseCompatibleListCommandr   r0   r   r   <module>rA      si    W &  % ' ' B ( D D%%++,,)4 ,)  -,)r   