
    K
                     6    S r SSKJr  SSKJr   " S S\5      rg)z7Utilities for Audit Manager API, Audit Scope Endpoints.    )	constants)utilc                   ^    \ rS rSrSr SS\R                  SS4S jjrS\S\S	\S
\	4S jr
Srg)AuditScopesClient   z-Client for Audit Scopes in Audit Manager API.Napi_versionreturnc                     U=(       d    [         R                  " US9U l        U=(       d    [         R                  " XS9U l        U R                  R
                  R                  nSUR                  0U l        g )N)r   )r   clientodf)	r   GetClientInstancer   GetMessagesModulemessagesGenerateAuditScopeReportRequestReportFormatValueValuesEnumAUDIT_SCOPE_REPORT_FORMAT_ODFreport_format_map)selfr   r   r   scope_report_format_enums        8lib/googlecloudsdk/api_lib/audit_manager/audit_scopes.py__init__AuditScopesClient.__init__   si     KD22{KDK  6 6!DM
 	55QQ  	'EED    scopecompliance_standardreport_formatis_parent_folderc                    U(       a  U R                   R                  OU R                   R                  nU R                  R	                  5       nX&l        U R                  U   Ul        U(       a  U R                  R                  5       OU R                  R                  5       nXl
        Xgl        UR                  U5      $ )af  Generate an Audit Scope.

Args:
  scope: The scope for which to generate the scope.
  compliance_standard: Compliance standard against which the scope must be
    generated.
  report_format: The format in which the audit scope should be generated.
  is_parent_folder: Whether the parent is folder and not project.

Returns:
  Described audit scope resource.
)r   #folders_locations_auditScopeReports$projects_locations_auditScopeReportsr   r   complianceStandardr   reportFormat<AuditmanagerFoldersLocationsAuditScopeReportsGenerateRequest=AuditmanagerProjectsLocationsAuditScopeReportsGenerateRequestr   generateAuditScopeReportRequestGenerate)r   r   r   r   r   service	inner_reqreqs           r   r&   AuditScopesClient.Generate'   s    *  	77[[==  ==?I#6 !33MBI  	RRT]]XXZ  I*3'C  r   )r   r   r   )NN)__name__
__module____qualname____firstlineno____doc__r   
ApiVersionr   strboolr&   __static_attributes__ r   r   r   r      sR    5 FJ"--%!%! %! 	%!
 %!r   r   N)r/   $googlecloudsdk.api_lib.audit_managerr   r   objectr   r4   r   r   <module>r7      s    > : 57! 7!r   