pub struct PolicyQuery {
pub group: Option<String>,
pub org_unit: Option<String>,
pub query: Option<String>,
pub sort_order: Option<f64>,
}Expand description
PolicyQuery
This type is not used in any activity, and only used as part of another schema.
Fields§
§group: Option<String>Immutable. The group that the query applies to. This field is only set if there is a single value for group that satisfies all clauses of the query. If no group applies, this will be the empty string.
org_unit: Option<String>Required. Immutable. Non-empty default. The OrgUnit the query applies to. This field is only set if there is a single value for org_unit that satisfies all clauses of the query.
query: Option<String>Immutable. The CEL query that defines which entities the Policy applies to (ex. a User entity). For details about CEL see https://opensource.google.com/projects/cel. The OrgUnits the Policy applies to are represented by a clause like so: entity.org_units.exists(org_unit, org_unit.org_unit_id == orgUnitId(‘{orgUnitId}’)) The Group the Policy applies to are represented by a clause like so: entity.groups.exists(group, group.group_id == groupId(‘{groupId}’)) The Licenses the Policy applies to are represented by a clause like so: entity.licenses.exists(license, license in [‘/product/{productId}/sku/{skuId}’]) The above clauses can be present in any combination, and used in conjunction with the &&, || and ! operators. The org_unit and group fields below are helper fields that contain the corresponding value(s) as the query to make the query easier to use.
sort_order: Option<f64>Output only. The decimal sort order of this PolicyQuery. The value is relative to all other policies with the same setting type for the customer. (There are no duplicates within this set).
Trait Implementations§
Source§impl Clone for PolicyQuery
impl Clone for PolicyQuery
Source§fn clone(&self) -> PolicyQuery
fn clone(&self) -> PolicyQuery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more