#[non_exhaustive]pub struct IamPolicyAnalysisQuery {
pub scope: String,
pub resource_selector: Option<ResourceSelector>,
pub identity_selector: Option<IdentitySelector>,
pub access_selector: Option<AccessSelector>,
pub options: Option<Options>,
pub condition_context: Option<ConditionContext>,
/* private fields */
}Expand description
IAM policy analysis query message.
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 relative name of the root asset. Only resources and IAM policies within the scope will be analyzed.
This can only be an organization number (such as “organizations/123”), a folder number (such as “folders/123”), a project ID (such as “projects/my-project-id”), or a project number (such as “projects/12345”).
To know how to get organization ID, visit here .
To know how to get folder or project ID, visit here .
resource_selector: Option<ResourceSelector>Optional. Specifies a resource for analysis.
identity_selector: Option<IdentitySelector>Optional. Specifies an identity for analysis.
access_selector: Option<AccessSelector>Optional. Specifies roles or permissions for analysis. This is optional.
options: Option<Options>Optional. The query options.
condition_context: Option<ConditionContext>Optional. The hypothetical context for IAM conditions evaluation.
Implementations§
Source§impl IamPolicyAnalysisQuery
impl IamPolicyAnalysisQuery
pub fn new() -> Self
Sourcepub fn set_resource_selector<T>(self, v: T) -> Selfwhere
T: Into<ResourceSelector>,
pub fn set_resource_selector<T>(self, v: T) -> Selfwhere
T: Into<ResourceSelector>,
Sets the value of resource_selector.
§Example
use google_cloud_asset_v1::model::iam_policy_analysis_query::ResourceSelector;
let x = IamPolicyAnalysisQuery::new().set_resource_selector(ResourceSelector::default()/* use setters */);Sourcepub fn set_or_clear_resource_selector<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceSelector>,
pub fn set_or_clear_resource_selector<T>(self, v: Option<T>) -> Selfwhere
T: Into<ResourceSelector>,
Sets or clears the value of resource_selector.
§Example
use google_cloud_asset_v1::model::iam_policy_analysis_query::ResourceSelector;
let x = IamPolicyAnalysisQuery::new().set_or_clear_resource_selector(Some(ResourceSelector::default()/* use setters */));
let x = IamPolicyAnalysisQuery::new().set_or_clear_resource_selector(None::<ResourceSelector>);Sourcepub fn set_identity_selector<T>(self, v: T) -> Selfwhere
T: Into<IdentitySelector>,
pub fn set_identity_selector<T>(self, v: T) -> Selfwhere
T: Into<IdentitySelector>,
Sets the value of identity_selector.
§Example
use google_cloud_asset_v1::model::iam_policy_analysis_query::IdentitySelector;
let x = IamPolicyAnalysisQuery::new().set_identity_selector(IdentitySelector::default()/* use setters */);Sourcepub fn set_or_clear_identity_selector<T>(self, v: Option<T>) -> Selfwhere
T: Into<IdentitySelector>,
pub fn set_or_clear_identity_selector<T>(self, v: Option<T>) -> Selfwhere
T: Into<IdentitySelector>,
Sets or clears the value of identity_selector.
§Example
use google_cloud_asset_v1::model::iam_policy_analysis_query::IdentitySelector;
let x = IamPolicyAnalysisQuery::new().set_or_clear_identity_selector(Some(IdentitySelector::default()/* use setters */));
let x = IamPolicyAnalysisQuery::new().set_or_clear_identity_selector(None::<IdentitySelector>);Sourcepub fn set_access_selector<T>(self, v: T) -> Selfwhere
T: Into<AccessSelector>,
pub fn set_access_selector<T>(self, v: T) -> Selfwhere
T: Into<AccessSelector>,
Sets the value of access_selector.
§Example
use google_cloud_asset_v1::model::iam_policy_analysis_query::AccessSelector;
let x = IamPolicyAnalysisQuery::new().set_access_selector(AccessSelector::default()/* use setters */);Sourcepub fn set_or_clear_access_selector<T>(self, v: Option<T>) -> Selfwhere
T: Into<AccessSelector>,
pub fn set_or_clear_access_selector<T>(self, v: Option<T>) -> Selfwhere
T: Into<AccessSelector>,
Sets or clears the value of access_selector.
§Example
use google_cloud_asset_v1::model::iam_policy_analysis_query::AccessSelector;
let x = IamPolicyAnalysisQuery::new().set_or_clear_access_selector(Some(AccessSelector::default()/* use setters */));
let x = IamPolicyAnalysisQuery::new().set_or_clear_access_selector(None::<AccessSelector>);Sourcepub fn set_options<T>(self, v: T) -> Self
pub fn set_options<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_options<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_options<T>(self, v: Option<T>) -> Self
Sourcepub fn set_condition_context<T>(self, v: T) -> Selfwhere
T: Into<ConditionContext>,
pub fn set_condition_context<T>(self, v: T) -> Selfwhere
T: Into<ConditionContext>,
Sets the value of condition_context.
§Example
use google_cloud_asset_v1::model::iam_policy_analysis_query::ConditionContext;
let x = IamPolicyAnalysisQuery::new().set_condition_context(ConditionContext::default()/* use setters */);Sourcepub fn set_or_clear_condition_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConditionContext>,
pub fn set_or_clear_condition_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<ConditionContext>,
Sets or clears the value of condition_context.
§Example
use google_cloud_asset_v1::model::iam_policy_analysis_query::ConditionContext;
let x = IamPolicyAnalysisQuery::new().set_or_clear_condition_context(Some(ConditionContext::default()/* use setters */));
let x = IamPolicyAnalysisQuery::new().set_or_clear_condition_context(None::<ConditionContext>);Trait Implementations§
Source§impl Clone for IamPolicyAnalysisQuery
impl Clone for IamPolicyAnalysisQuery
Source§fn clone(&self) -> IamPolicyAnalysisQuery
fn clone(&self) -> IamPolicyAnalysisQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more