Struct IamPolicyAnalysisQuery (0.5.0)

הודעת שאילתה לניתוח מדיניות IAM.

שדות

היקף

חובה. השם היחסי של נכס הבסיס. רק המשאבים וכללי מדיניות ה-IAM שבהיקף ינותחו.

הערך יכול להיות רק מספר ארגון (למשל "organizations/123"), מספר תיקייה (למשל "folders/123"), מזהה פרויקט (למשל "projects/my-project-id") או מספר פרויקט (למשל "projects/12345").

איך מוצאים את מזהה הארגון

כדי לדעת איך לאתר את מזהה התיקייה או מזהה הפרויקט, יש להיכנס לכאן.

resource_selector

זה שינוי אופציונלי. מציין משאב לניתוח.

identity_selector

זה שינוי אופציונלי. מציין זהות לניתוח.

access_selector

זה שינוי אופציונלי. מציין תפקידים או הרשאות לניתוח. הפעולה הזאת אופציונלית.

אפשרויות

זה שינוי אופציונלי. אפשרויות השאילתה.

condition_context

זה שינוי אופציונלי. ההקשר ההיפותטי להערכת תנאי IAM.

הטמעות

חדש

 fn new() -> Self

set_scope

 fn set_scope<T: std::convert::Into<std::string::String>>(self, v: T) -> Self

מגדיר את הערך של [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>,

מגדיר את הערך של [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>,

מגדיר או מנקה את הערך של [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>,

מגדיר את הערך של [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>,

מגדיר או מוחק את הערך של [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>,

מגדיר את הערך של [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>,

מגדיר או מנקה את הערך של [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>,

מגדיר את הערך של [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>,

מגדיר או מנקה את הערך של [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>,

מגדיר את הערך של [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>,

הגדרה או ניקוי של הערך של [condition_context][crate::model::IamPolicyAnalysisQuery::condition_context].