Skip to content

Commit

Permalink
added notifications settings (#15500)
Browse files Browse the repository at this point in the history
  • Loading branch information
dankorenMicrosoft committed Aug 24, 2021
1 parent d3c50e4 commit 8dc5f1d
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,48 @@
"additionalProperties": {
"type": "string"
}
},
"notificationsSettings": {
"description": "Gets or sets notifications settings",
"$ref": "#/definitions/NotificationsSettingsProperties",
"x-ms-client-flatten": true
}
}
},
"NotificationsSettingsProperties": {
"description": "Describes the json payload for notifications settings",
"type": "object",
"properties": {
"recipients": {
"description": "Gets or sets list of notified recipients for new requests",
"type": "array",
"items": {
"$ref": "#/definitions/Recipient"
}
},
"sendToAllMarketplaceAdmins": {
"description": "Gets or sets whether to send email to all marketplace admins for new requests",
"type": "boolean"
}
}
},
"Recipient": {
"description": "Describes the json payload for a notified recipient for new requests",
"type": "object",
"properties": {
"principalId": {
"description": "Principal ID",
"type": "string"
},
"emailAddress": {
"description": "Email Address",
"type": "string",
"readOnly": true
},
"displayName": {
"description": "Display Name",
"type": "string",
"readOnly": true
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,21 @@
"branding": {
"iconUrl": "https://some-images.someDomail.com/image/stroeIcon.12345678-4321",
"color": "blue"
},
"notificationsSettings": {
"recipients": [
{
"principalId": "6d583005-403b-407a-8ac0-c4af72b47ce9",
"emailAddress": "john_doe@microsoft.com",
"displayName": "John Doe"
},
{
"principalId": "c5b680d4-aac2-4940-9e1c-399454056ff2",
"emailAddress": "jane_doe@microsoft.com",
"displayName": "Jane Doe"
}
],
"sendToAllMarketplaceAdmins": true
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@
"branding": {
"iconUrl": "https://some-images.someDomail.com/image/stroeIcon.12345678-4321",
"color": "blue"
},
"notificationsSettings": {
"recipients": [
{
"principalId": "6d583005-403b-407a-8ac0-c4af72b47ce9",
"emailAddress": "john_doe@microsoft.com",
"displayName": "John Doe"
},
{
"principalId": "c5b680d4-aac2-4940-9e1c-399454056ff2",
"emailAddress": "jane_doe@microsoft.com",
"displayName": "Jane Doe"
}
],
"sendToAllMarketplaceAdmins": true
}
}
}
Expand Down

0 comments on commit 8dc5f1d

Please sign in to comment.