diff --git a/msgraph/models.go b/msgraph/models.go index 21253ff8..76b54f51 100644 --- a/msgraph/models.go +++ b/msgraph/models.go @@ -1439,6 +1439,7 @@ type ServicePrincipal struct { AppDisplayName *string `json:"appDisplayName,omitempty"` AppId *string `json:"appId,omitempty"` ApplicationTemplateId *string `json:"applicationTemplateId,omitempty"` + AppMetadata *ServicePrincipalAppMetadata `json:"appMetadata,omitempty"` AppOwnerOrganizationId *string `json:"appOwnerOrganizationId,omitempty"` AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"` AppRoles *[]AppRole `json:"appRoles,omitempty"` @@ -1481,6 +1482,11 @@ func (s *ServicePrincipal) UnmarshalJSON(data []byte) error { return nil } +type ServicePrincipalAppMetadata struct { + Version *int `json:"version,omitempty"` + Data *[]KeyValueObject `json:"data,omitempty"` +} + type SynchronizationSchedule struct { Expiration *time.Time `json:"expiration,omitempty"` Interval *string `json:"interval,omitempty"` diff --git a/msgraph/valuetypes.go b/msgraph/valuetypes.go index cfd8ce22..eca99667 100644 --- a/msgraph/valuetypes.go +++ b/msgraph/valuetypes.go @@ -22,6 +22,11 @@ func (s StringNullWhenEmpty) MarshalJSON() ([]byte, error) { return json.Marshal(string(s)) } +type KeyValueObject struct { + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` +} + type AccessPackageCatalogState = string const (