
    K
                     6    d Z ddlmZ ddlmZ  G d de      Zy)z7Utilities for Audit Manager API, Audit Scope Endpoints.    )	constants)utilc                   P    e Zd ZdZ	 ddej
                  ddfdZdededed	efd
Z	y)AuditScopesClientz-Client for Audit Scopes in Audit Manager API.Napi_versionreturnc                     |xs t        j                  |      | _        |xs t        j                  ||      | _        | j                  j
                  j                  }d|j                  i| _        y )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__zAuditScopesClient.__init__   sk     KD22{KDK  6 6!DM
 	55QQ  	'EED    scopecompliance_standardreport_formatis_parent_folderc                 r   |r| j                   j                  n| j                   j                  }| j                  j	                         }||_        | j                  |   |_        |r| j                  j                         n| j                  j                         }||_
        ||_        |j                  |      S )a  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$   zAuditScopesClient.Generate'   s    *  	77[[==  ==?I#6I !33MBI  	RRT]]XXZ  CI*3C'C  r   )NN)
__name__
__module____qualname____doc__r   
ApiVersionr   strboolr$    r   r   r   r      sR    5 FJ"--%!%! %! 	%!
 %!r   r   N)r+   $googlecloudsdk.api_lib.audit_managerr   r   objectr   r/   r   r   <module>r2      s    > : 57! 7!r   