
    u
                        d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ dd	lmZ  ej                  ej                  j                         ej"                   G d
 dej$                                      Zy)zPCommand for listing a Cloud Security Command Center RemediationIntent resources.    )absolute_import)division)print_function)unicode_literals)
list_pager)sps_api)base)flagsc                   0    e Zd ZdZdddZed        Zd Zy)Listz'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    t         j                  j                  |        | j                  j	                  d       y )Nztable(name))r
   POSITIONAL_PARENT_NAME_FLAGAddToParserdisplay_info	AddFormat)parsers    +lib/surface/scc/remediation_intents/list.pyArgsz	List.Args.   s*    	%%11&9
!!-0    c                 `   t        j                  t        j                  j                        }t        j
                  t        j                  j                        }|j                  |j                  |j                        }t        j                  |j                  |d|j                  d      S )a
  The 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   RunzList.Run3   s     &&t'8'8'>'>?F(():):)@)@AH YY{{{{ Z G
 ##99"jj') )r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r,    r   r   r   r      s2     0I
- 1 1)r   r   N)r0   
__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   r3   r   r   <module>r<      sk    W &  % ' ' B ( D D%%++,,)4 ,)  -,)r   