構造体 IamPolicyAnalysisQuery(0.5.0)

IAM ポリシー分析 Query メッセージ。

フィールド

スコープ

必須。ルートアセットの相対名。スコープ内のリソースと IAM ポリシーのみが分析されます。

これは、組織番号(「organizations/123」など)、フォルダ番号(「folders/123」など)、プロジェクト ID(「projects/my-project-id」など)、またはプロジェクト番号(「projects/12345」など)のみです。

組織 ID を取得する方法については、こちらをご覧ください。

フォルダ ID またはプロジェクト ID を取得する方法については、こちらをご覧ください。

resource_selector

省略可。分析対象のリソースを指定します。

identity_selector

省略可。分析対象の ID を指定します。

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] の値を設定またはクリアします。