#[non_exhaustive]pub struct ReportGenerationProgress {
pub state: OperationState,
pub failure_reason: String,
pub evaluation_percent_complete: f64,
pub report_generation_percent_complete: f64,
pub report_uploading_percent_complete: f64,
pub destination_gcs_bucket: String,
pub audit_report: String,
/* private fields */
}Expand description
The ReportGenerationProgress is part of
google.longrunning.Operation returned to the
client for every GetOperation request.
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.state: OperationStateOutput only. The current state of execution for report generation.
failure_reason: StringOutput only. States the reason of failure during the audit report generation process. This field is set only if the state attribute is OPERATION_STATE_FAILED.
evaluation_percent_complete: f64Shows the progress of the CESS service evaluation process. The progress is defined in terms of percentage complete and is being fetched from the CESS service.
report_generation_percent_complete: f64Shows the report generation progress of the CESS Result Processor Service. The // progress is defined in terms of percentage complete and is being fetched from the CESS service. If report_generation_in_progress is non zero then evaluation_percent_complete will be 100%.
report_uploading_percent_complete: f64Shows the report uploading progress of the CESS Result Processor Service. The progress is defined in terms of percentage complete and is being fetched from the CESS service. If report_uploading_in_progress is non zero then evaluation_percent_complete and report_generation_percent_complete will be 100%.
destination_gcs_bucket: StringOutput only. The Cloud Storage bucket where the audit report will be uploaded once the evaluation process is completed.
audit_report: StringOutput only. The name of the audit report.
Implementations§
Source§impl ReportGenerationProgress
impl ReportGenerationProgress
pub fn new() -> Self
Sourcepub fn set_state<T: Into<OperationState>>(self, v: T) -> Self
pub fn set_state<T: Into<OperationState>>(self, v: T) -> Self
Sets the value of state.
§Example
use google_cloud_auditmanager_v1::model::OperationState;
let x0 = ReportGenerationProgress::new().set_state(OperationState::NotStarted);
let x1 = ReportGenerationProgress::new().set_state(OperationState::EvaluationInProgress);
let x2 = ReportGenerationProgress::new().set_state(OperationState::EvaluationDone);Sourcepub fn set_failure_reason<T: Into<String>>(self, v: T) -> Self
pub fn set_failure_reason<T: Into<String>>(self, v: T) -> Self
Sets the value of failure_reason.
§Example
let x = ReportGenerationProgress::new().set_failure_reason("example");Sourcepub fn set_evaluation_percent_complete<T: Into<f64>>(self, v: T) -> Self
pub fn set_evaluation_percent_complete<T: Into<f64>>(self, v: T) -> Self
Sets the value of evaluation_percent_complete.
§Example
let x = ReportGenerationProgress::new().set_evaluation_percent_complete(42.0);Sourcepub fn set_report_generation_percent_complete<T: Into<f64>>(self, v: T) -> Self
pub fn set_report_generation_percent_complete<T: Into<f64>>(self, v: T) -> Self
Sets the value of report_generation_percent_complete.
§Example
let x = ReportGenerationProgress::new().set_report_generation_percent_complete(42.0);Sourcepub fn set_report_uploading_percent_complete<T: Into<f64>>(self, v: T) -> Self
pub fn set_report_uploading_percent_complete<T: Into<f64>>(self, v: T) -> Self
Sets the value of report_uploading_percent_complete.
§Example
let x = ReportGenerationProgress::new().set_report_uploading_percent_complete(42.0);Sourcepub fn set_destination_gcs_bucket<T: Into<String>>(self, v: T) -> Self
pub fn set_destination_gcs_bucket<T: Into<String>>(self, v: T) -> Self
Sets the value of destination_gcs_bucket.
§Example
let x = ReportGenerationProgress::new().set_destination_gcs_bucket("example");Sourcepub fn set_audit_report<T: Into<String>>(self, v: T) -> Self
pub fn set_audit_report<T: Into<String>>(self, v: T) -> Self
Sets the value of audit_report.
§Example
let x = ReportGenerationProgress::new().set_audit_report("example");Trait Implementations§
Source§impl Clone for ReportGenerationProgress
impl Clone for ReportGenerationProgress
Source§fn clone(&self) -> ReportGenerationProgress
fn clone(&self) -> ReportGenerationProgress
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more