#[non_exhaustive]pub struct FrameworkAudit {Show 13 fields
pub name: String,
pub framework_audit_id: String,
pub compliance_framework: String,
pub scope: String,
pub framework_audit_destination: Option<FrameworkAuditDestination>,
pub start_time: Option<Timestamp>,
pub finish_time: Option<Timestamp>,
pub compliance_state: ComplianceState,
pub report_summary: Option<ReportSummary>,
pub cloud_control_group_audit_details: Vec<CloudControlGroupAuditDetails>,
pub cloud_control_audit_details: Vec<CloudControlAuditDetails>,
pub operation_id: String,
pub state: State,
/* private fields */
}Expand description
A framework audit.
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.name: StringOutput only. Identifier. The name of the framework audit.
framework_audit_id: StringOutput only. The ID of the framework audit.
compliance_framework: StringOutput only. The compliance framework used for the audit.
scope: StringOutput only. The scope of the audit.
framework_audit_destination: Option<FrameworkAuditDestination>Required. The destination for the audit reports.
start_time: Option<Timestamp>Output only. The time that the audit started.
finish_time: Option<Timestamp>Output only. The time that the audit finished.
compliance_state: ComplianceStateOutput only. The overall compliance state of the audit.
report_summary: Option<ReportSummary>Output only. The summary of the report.
cloud_control_group_audit_details: Vec<CloudControlGroupAuditDetails>Optional. The details for the cloud control groups within this audit.
cloud_control_audit_details: Vec<CloudControlAuditDetails>Optional. The details for the cloud controls within this audit.
operation_id: StringOutput only. The ID of the long-running operation.
state: StateOutput only. The framework audit state of the audit.
Implementations§
Source§impl FrameworkAudit
impl FrameworkAudit
pub fn new() -> Self
Sourcepub fn set_framework_audit_id<T: Into<String>>(self, v: T) -> Self
pub fn set_framework_audit_id<T: Into<String>>(self, v: T) -> Self
Sets the value of framework_audit_id.
§Example
let x = FrameworkAudit::new().set_framework_audit_id("example");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 = FrameworkAudit::new().set_compliance_framework("example");Sourcepub fn set_framework_audit_destination<T>(self, v: T) -> Selfwhere
T: Into<FrameworkAuditDestination>,
pub fn set_framework_audit_destination<T>(self, v: T) -> Selfwhere
T: Into<FrameworkAuditDestination>,
Sets the value of framework_audit_destination.
§Example
use google_cloud_cloudsecuritycompliance_v1::model::FrameworkAuditDestination;
let x = FrameworkAudit::new().set_framework_audit_destination(FrameworkAuditDestination::default()/* use setters */);Sourcepub fn set_or_clear_framework_audit_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<FrameworkAuditDestination>,
pub fn set_or_clear_framework_audit_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<FrameworkAuditDestination>,
Sets or clears the value of framework_audit_destination.
§Example
use google_cloud_cloudsecuritycompliance_v1::model::FrameworkAuditDestination;
let x = FrameworkAudit::new().set_or_clear_framework_audit_destination(Some(FrameworkAuditDestination::default()/* use setters */));
let x = FrameworkAudit::new().set_or_clear_framework_audit_destination(None::<FrameworkAuditDestination>);Sourcepub fn set_start_time<T>(self, v: T) -> Self
pub fn set_start_time<T>(self, v: T) -> Self
Sets the value of start_time.
§Example
use wkt::Timestamp;
let x = FrameworkAudit::new().set_start_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_time.
§Example
use wkt::Timestamp;
let x = FrameworkAudit::new().set_or_clear_start_time(Some(Timestamp::default()/* use setters */));
let x = FrameworkAudit::new().set_or_clear_start_time(None::<Timestamp>);Sourcepub fn set_finish_time<T>(self, v: T) -> Self
pub fn set_finish_time<T>(self, v: T) -> Self
Sets the value of finish_time.
§Example
use wkt::Timestamp;
let x = FrameworkAudit::new().set_finish_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_finish_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_finish_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of finish_time.
§Example
use wkt::Timestamp;
let x = FrameworkAudit::new().set_or_clear_finish_time(Some(Timestamp::default()/* use setters */));
let x = FrameworkAudit::new().set_or_clear_finish_time(None::<Timestamp>);Sourcepub fn set_compliance_state<T: Into<ComplianceState>>(self, v: T) -> Self
pub fn set_compliance_state<T: Into<ComplianceState>>(self, v: T) -> Self
Sets the value of compliance_state.
§Example
use google_cloud_cloudsecuritycompliance_v1::model::ComplianceState;
let x0 = FrameworkAudit::new().set_compliance_state(ComplianceState::Compliant);
let x1 = FrameworkAudit::new().set_compliance_state(ComplianceState::Violation);
let x2 = FrameworkAudit::new().set_compliance_state(ComplianceState::ManualReviewNeeded);Sourcepub fn set_report_summary<T>(self, v: T) -> Selfwhere
T: Into<ReportSummary>,
pub fn set_report_summary<T>(self, v: T) -> Selfwhere
T: Into<ReportSummary>,
Sets the value of report_summary.
§Example
use google_cloud_cloudsecuritycompliance_v1::model::ReportSummary;
let x = FrameworkAudit::new().set_report_summary(ReportSummary::default()/* use setters */);Sourcepub fn set_or_clear_report_summary<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReportSummary>,
pub fn set_or_clear_report_summary<T>(self, v: Option<T>) -> Selfwhere
T: Into<ReportSummary>,
Sets or clears the value of report_summary.
§Example
use google_cloud_cloudsecuritycompliance_v1::model::ReportSummary;
let x = FrameworkAudit::new().set_or_clear_report_summary(Some(ReportSummary::default()/* use setters */));
let x = FrameworkAudit::new().set_or_clear_report_summary(None::<ReportSummary>);Sourcepub fn set_cloud_control_group_audit_details<T, V>(self, v: T) -> Self
pub fn set_cloud_control_group_audit_details<T, V>(self, v: T) -> Self
Sets the value of cloud_control_group_audit_details.
§Example
use google_cloud_cloudsecuritycompliance_v1::model::CloudControlGroupAuditDetails;
let x = FrameworkAudit::new()
.set_cloud_control_group_audit_details([
CloudControlGroupAuditDetails::default()/* use setters */,
CloudControlGroupAuditDetails::default()/* use (different) setters */,
]);Sourcepub fn set_cloud_control_audit_details<T, V>(self, v: T) -> Self
pub fn set_cloud_control_audit_details<T, V>(self, v: T) -> Self
Sets the value of cloud_control_audit_details.
§Example
use google_cloud_cloudsecuritycompliance_v1::model::CloudControlAuditDetails;
let x = FrameworkAudit::new()
.set_cloud_control_audit_details([
CloudControlAuditDetails::default()/* use setters */,
CloudControlAuditDetails::default()/* use (different) setters */,
]);Sourcepub fn set_operation_id<T: Into<String>>(self, v: T) -> Self
pub fn set_operation_id<T: Into<String>>(self, v: T) -> Self
Sets the value of operation_id.
§Example
let x = FrameworkAudit::new().set_operation_id("example");Trait Implementations§
Source§impl Clone for FrameworkAudit
impl Clone for FrameworkAudit
Source§fn clone(&self) -> FrameworkAudit
fn clone(&self) -> FrameworkAudit
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more