Skip to content

Commit

Permalink
Merge pull request #259 from manicminer/f/service-principal-appmetadata
Browse files Browse the repository at this point in the history
Service Principals: support the `appMetadata` field
  • Loading branch information
manicminer authored Sep 26, 2023
2 parents b20fa5f + 4e2cb46 commit cb11457
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions msgraph/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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"`
Expand Down
5 changes: 5 additions & 0 deletions msgraph/valuetypes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit cb11457

Please sign in to comment.