#[non_exhaustive]pub struct GenerateAuditReportRequest {
pub scope: String,
pub compliance_standard: String,
pub report_format: AuditReportFormat,
pub compliance_framework: String,
pub destination: Option<Destination>,
/* private fields */
}Expand description
Message for requesting the Audit Report.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scope: StringRequired. Scope for which the AuditScopeReport is required. Must be of format resource_type/resource_identifier Eg: projects/{project}/locations/{location}, folders/{folder}/locations/{location}
compliance_standard: StringRequired. Compliance Standard against which the Scope Report must be generated. Eg: FEDRAMP_MODERATE
report_format: AuditReportFormatRequired. The format in which the audit report should be created.
compliance_framework: StringRequired. Compliance framework against which the Report must be generated.
destination: Option<Destination>Set of options for the report destination location.
Implementations§
Source§impl GenerateAuditReportRequest
impl GenerateAuditReportRequest
pub fn new() -> Self
Sourcepub fn set_compliance_standard<T: Into<String>>(self, v: T) -> Self
pub fn set_compliance_standard<T: Into<String>>(self, v: T) -> Self
Sets the value of compliance_standard.
§Example
let x = GenerateAuditReportRequest::new().set_compliance_standard("example");Sourcepub fn set_report_format<T: Into<AuditReportFormat>>(self, v: T) -> Self
pub fn set_report_format<T: Into<AuditReportFormat>>(self, v: T) -> Self
Sets the value of report_format.
§Example
use google_cloud_auditmanager_v1::model::generate_audit_report_request::AuditReportFormat;
let x0 = GenerateAuditReportRequest::new().set_report_format(AuditReportFormat::Odf);Sourcepub fn set_compliance_framework<T: Into<String>>(self, v: T) -> Self
pub fn set_compliance_framework<T: Into<String>>(self, v: T) -> Self
Sets the value of compliance_framework.
§Example
let x = GenerateAuditReportRequest::new().set_compliance_framework("example");Sourcepub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
pub fn set_destination<T: Into<Option<Destination>>>(self, v: T) -> Self
Sets the value of destination.
Note that all the setters affecting destination are mutually
exclusive.
§Example
use google_cloud_auditmanager_v1::model::generate_audit_report_request::Destination;
let x = GenerateAuditReportRequest::new().set_destination(Some(Destination::GcsUri("example".to_string())));Sourcepub fn gcs_uri(&self) -> Option<&String>
pub fn gcs_uri(&self) -> Option<&String>
The value of destination
if it holds a GcsUri, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcs_uri<T: Into<String>>(self, v: T) -> Self
pub fn set_gcs_uri<T: Into<String>>(self, v: T) -> Self
Sets the value of destination
to hold a GcsUri.
Note that all the setters affecting destination are
mutually exclusive.
§Example
let x = GenerateAuditReportRequest::new().set_gcs_uri("example");
assert!(x.gcs_uri().is_some());Trait Implementations§
Source§impl Clone for GenerateAuditReportRequest
impl Clone for GenerateAuditReportRequest
Source§fn clone(&self) -> GenerateAuditReportRequest
fn clone(&self) -> GenerateAuditReportRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more