IAM policy analysis query message.
Fields
scope
Required. 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
Optional. Specifies a resource for analysis.
identity_selector
Optional. Specifies an identity for analysis.
access_selector
Optional. Specifies roles or permissions for analysis. This is optional.
options
Optional. The query options.
condition_context
Optional. The hypothetical context for IAM conditions evaluation.
Implementations
new
fn new() -> Self
set_scope
fn set_scope<T: std::convert::Into<std::string::String>>(self, v: T) -> Self
Sets the value of [scope][crate::model::IamPolicyAnalysisQuery::scope].
set_resource_selector
fn set_resource_selector<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::iam_policy_analysis_query::ResourceSelector>,
Sets the value of [resource_selector][crate::model::IamPolicyAnalysisQuery::resource_selector].
set_or_clear_resource_selector
fn set_or_clear_resource_selector<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::iam_policy_analysis_query::ResourceSelector>,
Sets or clears the value of [resource_selector][crate::model::IamPolicyAnalysisQuery::resource_selector].
set_identity_selector
fn set_identity_selector<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::iam_policy_analysis_query::IdentitySelector>,
Sets the value of [identity_selector][crate::model::IamPolicyAnalysisQuery::identity_selector].
set_or_clear_identity_selector
fn set_or_clear_identity_selector<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::iam_policy_analysis_query::IdentitySelector>,
Sets or clears the value of [identity_selector][crate::model::IamPolicyAnalysisQuery::identity_selector].
set_access_selector
fn set_access_selector<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::iam_policy_analysis_query::AccessSelector>,
Sets the value of [access_selector][crate::model::IamPolicyAnalysisQuery::access_selector].
set_or_clear_access_selector
fn set_or_clear_access_selector<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::iam_policy_analysis_query::AccessSelector>,
Sets or clears the value of [access_selector][crate::model::IamPolicyAnalysisQuery::access_selector].
set_options
fn set_options<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::iam_policy_analysis_query::Options>,
Sets the value of [options][crate::model::IamPolicyAnalysisQuery::options].
set_or_clear_options
fn set_or_clear_options<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::iam_policy_analysis_query::Options>,
Sets or clears the value of [options][crate::model::IamPolicyAnalysisQuery::options].
set_condition_context
fn set_condition_context<T>(self, v: T) -> Self
where
T: std::convert::Into<crate::model::iam_policy_analysis_query::ConditionContext>,
Sets the value of [condition_context][crate::model::IamPolicyAnalysisQuery::condition_context].
set_or_clear_condition_context
fn set_or_clear_condition_context<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<crate::model::iam_policy_analysis_query::ConditionContext>,
Sets or clears the value of [condition_context][crate::model::IamPolicyAnalysisQuery::condition_context].