#[non_exhaustive]pub struct LintPolicyRequest {
pub full_resource_name: String,
pub lint_object: Option<LintObject>,
/* private fields */
}Expand description
The request to lint a Cloud IAM policy object.
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.full_resource_name: StringThe full resource name of the policy this lint request is about.
The name follows the Google Cloud Platform (GCP) resource format.
For example, a GCP project with ID my-project will be named
//cloudresourcemanager.googleapis.com/projects/my-project.
The resource name is not used to read the policy instance from the Cloud IAM database. The candidate policy for lint has to be provided in the same request object.
lint_object: Option<LintObject>Required. The Cloud IAM object to be linted.
Implementations§
Source§impl LintPolicyRequest
impl LintPolicyRequest
pub fn new() -> Self
Sourcepub fn set_full_resource_name<T: Into<String>>(self, v: T) -> Self
pub fn set_full_resource_name<T: Into<String>>(self, v: T) -> Self
Sets the value of full_resource_name.
Sourcepub fn set_lint_object<T: Into<Option<LintObject>>>(self, v: T) -> Self
pub fn set_lint_object<T: Into<Option<LintObject>>>(self, v: T) -> Self
Sets the value of lint_object.
Note that all the setters affecting lint_object are mutually
exclusive.
Sourcepub fn condition(&self) -> Option<&Box<Expr>>
pub fn condition(&self) -> Option<&Box<Expr>>
The value of lint_object
if it holds a Condition, None if the field is not set or
holds a different branch.
Sourcepub fn set_condition<T: Into<Box<Expr>>>(self, v: T) -> Self
pub fn set_condition<T: Into<Box<Expr>>>(self, v: T) -> Self
Sets the value of lint_object
to hold a Condition.
Note that all the setters affecting lint_object are
mutually exclusive.
Trait Implementations§
Source§impl Clone for LintPolicyRequest
impl Clone for LintPolicyRequest
Source§fn clone(&self) -> LintPolicyRequest
fn clone(&self) -> LintPolicyRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more