#[non_exhaustive]pub struct EnrollResourceRequest {
pub scope: String,
pub destinations: Vec<EligibleDestination>,
/* private fields */
}Expand description
Request message to subscribe the Audit Manager service for given resource.
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. The resource to be enrolled to the audit manager. Scope format should be resource_type/resource_identifier Eg: projects/{project}/locations/{location}, folders/{folder}/locations/{location} organizations/{organization}/locations/{location}
destinations: Vec<EligibleDestination>Required. List of destination among which customer can choose to upload their reports during the audit process. While enrolling at a organization/folder level, customer can choose Cloud storage bucket in any project. If the audit is triggered at project level using the service agent at organization/folder level, all the destination options associated with respective organization/folder level service agent will be available to auditing projects.
Implementations§
Source§impl EnrollResourceRequest
impl EnrollResourceRequest
pub fn new() -> Self
Sourcepub fn set_destinations<T, V>(self, v: T) -> Self
pub fn set_destinations<T, V>(self, v: T) -> Self
Sets the value of destinations.
§Example
use google_cloud_auditmanager_v1::model::enroll_resource_request::EligibleDestination;
let x = EnrollResourceRequest::new()
.set_destinations([
EligibleDestination::default()/* use setters */,
EligibleDestination::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for EnrollResourceRequest
impl Clone for EnrollResourceRequest
Source§fn clone(&self) -> EnrollResourceRequest
fn clone(&self) -> EnrollResourceRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more