You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: graph/patterns/subsets.md
+66-8Lines changed: 66 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,18 @@ Existing patterns for this either have special-cased strings or have tightly cou
16
16
17
17
Have an abstract base class where all variants of the subset are derived types from the base subset. For more information, see the [general subtyping guidance](./subtypes.md).
18
18
19
-
The abstract base class should also hold an enum for all possible variants. The purpose of including this is to allow for easier ways to do query and filter operations on variants like `all` and `none` without relying on `isof` functions.
19
+
The abstract base class may also optionally hold an `enum` for the different variants. If it does, the `enum` must have a member for all possible variants. The purpose of including this is to allow for easier ways to do query and filter operations on variants like `all` and `none` without relying on `isof` functions.
@@ -53,7 +59,7 @@ Be aware that the name values and types in the preceding examples are just examp
53
59
54
60
These pattern type names should satisfy the following naming conventions:
55
61
56
-
- The base type name should have the suffix `Base`, and the enumeration type name should have the suffix `Kind`.
62
+
- The base type name should have the suffix `Base`, and the enumeration type name (if an `enum` is defined) should have the suffix `Kind`.
57
63
- Derived child types should have names with enumeration values as the prefixes; for example, if the enumeration member value is `value1`, then the derived type name is `value1<type>`.
58
64
59
65
```xml
@@ -176,3 +182,55 @@ _Note: Unrelated properties on entities are omitted for easier readability._
176
182
}
177
183
}
178
184
```
185
+
186
+
### Filter when base type has the "kind" enum property
187
+
188
+
```http
189
+
GET https://graph.microsoft.com/v1.0/identity/conditionalAccess/policies?$filter=conditions/users/includeGuestsOrExternalUsers/externalTenants/membershipKind eq 'all'
### Filter when base type lacks the "kind" enum property
213
+
214
+
```HTTP
215
+
GET https://graph.microsoft.com/v1.0/identity/conditionalAccess/policies?$filter=isof(conditions/users/includeGuestsOrExternalUsers/externalTenants, microsoft.graph.conditionalAccessAllExternalTenants)
0 commit comments