pub struct Policy {
pub customer: Option<String>,
pub name: Option<String>,
pub policy_query: Option<PolicyQuery>,
pub setting: Option<Setting>,
pub type_: Option<String>,
}Expand description
A Policy resource binds an instance of a single Setting with the scope of a PolicyQuery. The Setting instance will be applied to all entities that satisfy the query.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- get policies (response)
Fields§
§customer: Option<String>Immutable. Customer that the Policy belongs to. The value is in the format ‘customers/{customerId}’. The customerId must begin with “C” To find your customer ID in Admin Console see https://support.google.com/a/answer/10070793.
name: Option<String>Output only. Identifier. The resource name of the Policy. Format: policies/{policy}.
policy_query: Option<PolicyQuery>Required. The PolicyQuery the Setting applies to.
setting: Option<Setting>Required. The Setting configured by this Policy.
type_: Option<String>Output only. The type of the policy.