From 6875d240b731e2a087a412488665f23f8c8ddb74 Mon Sep 17 00:00:00 2001 From: Tom Bamford Date: Tue, 7 Dec 2021 22:34:17 +0000 Subject: [PATCH] Support dynamic group membership --- msgraph/models.go | 4 ++-- msgraph/valuetypes.go | 10 +++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/msgraph/models.go b/msgraph/models.go index 710403a0..d8dcec62 100644 --- a/msgraph/models.go +++ b/msgraph/models.go @@ -841,8 +841,8 @@ type Group struct { Mail *string `json:"mail,omitempty"` MailEnabled *bool `json:"mailEnabled,omitempty"` MailNickname *string `json:"mailNickname,omitempty"` - MembershipRule *string `json:"membershipRule,omitempty"` - MembershipRuleProcessingState *string `json:"membershipRuleProcessingState,omitempty"` + MembershipRule *StringNullWhenEmpty `json:"membershipRule,omitempty"` + MembershipRuleProcessingState *GroupMembershipRuleProcessingState `json:"membershipRuleProcessingState,omitempty"` OnPremisesDomainName *string `json:"onPremisesDomainName,omitempty"` OnPremisesLastSyncDateTime *time.Time `json:"onPremisesLastSyncDateTime,omitempty"` OnPremisesNetBiosName *string `json:"onPremisesNetBiosName,omitempty"` diff --git a/msgraph/valuetypes.go b/msgraph/valuetypes.go index 8456b568..0887fd0b 100644 --- a/msgraph/valuetypes.go +++ b/msgraph/valuetypes.go @@ -324,10 +324,18 @@ const ( FeatureTypeUnknownFutureValue FeatureType = "unknownFutureValue" ) +type GroupMembershipRuleProcessingState = string + +const ( + GroupMembershipRuleProcessingStateOn GroupMembershipRuleProcessingState = "On" + GroupMembershipRuleProcessingStatePaused GroupMembershipRuleProcessingState = "Paused" +) + type GroupType = string const ( - GroupTypeUnified GroupType = "Unified" + GroupTypeDynamicMembership GroupType = "DynamicMembership" + GroupTypeUnified GroupType = "Unified" ) type GroupMembershipClaim = string