-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added new receivers to action group document. #2077
Changes from 3 commits
59af5b9
8cd8b0c
283f3ad
68748c5
8e429b0
d00501b
0ef0531
3ffbce8
519230d
4782243
dbd23df
6563da7
db04cc2
dcc811e
e9e4271
eada97a
c002bd9
83964be
7a323fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -391,6 +391,20 @@ | |
"$ref": "#/definitions/WebhookReceiver" | ||
}, | ||
"description": "The list of webhook receivers that are part of this action group." | ||
}, | ||
"ItsmReceivers": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/ItsmReceiver" | ||
}, | ||
"description": "The list of ITSM receivers that are part of this action group." | ||
}, | ||
"AzureAppPushReceivers": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/AzureAppPushReceiver" | ||
}, | ||
"description": "The list of AzureAppPush receivers that are part of this action group." | ||
} | ||
}, | ||
"required": [ | ||
|
@@ -464,6 +478,55 @@ | |
"serviceUri" | ||
] | ||
}, | ||
"ItsmReceiver": { | ||
"description": "An Itsm receiver.", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the Itsm receiver. Names must be unique across all receivers within an action group." | ||
}, | ||
"workspaceId": { | ||
"type": "string", | ||
"description": "OMS LA instance identifier." | ||
}, | ||
"connectionId": { | ||
"type": "string", | ||
"description": "Unique identification of ITSM connection among multiple defined in above workspace." | ||
}, | ||
"ticketConfiguration": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this property? Is this xml? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is JSON configuration string. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch, the description is fixed in new iteration. |
||
"type": "string", | ||
"description": "XML blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well." | ||
}, | ||
"region": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. make this an enum There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You mean region field? It is already released as string field for better readability. |
||
"type": "string", | ||
"description": "Region in which workspace resides. Supported values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope'" | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"workspaceId", | ||
"connectionId", | ||
"ticketConfiguration", | ||
"region" | ||
] | ||
}, | ||
"AzureAppPushReceiver": { | ||
"description": "The Azure mobile App push notification receiver.", | ||
"properties": { | ||
"name": { | ||
"type": "string", | ||
"description": "The name of the Azure mobile app push receiver. Names must be unique across all receivers within an action group." | ||
}, | ||
"emailAddress": { | ||
"type": "string", | ||
"description": "The email address registered for the Azure mobile app." | ||
} | ||
}, | ||
"required": [ | ||
"name", | ||
"emailAddress" | ||
] | ||
}, | ||
"ReceiverStatus": { | ||
"type": "string", | ||
"enum": [ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because these are not required properties, I don't believe this is a breaking change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding new properties - required or optional is considered a breaking change. This could result in clients unitentionally overriding the properties on the server. Imagine a resource got created with this new property. Then the GET on the resource happened from a client which did not understand this property and so ignored it. Now if the PUT happens from the same client using the resource that was obtained via GET, the value of this property on the server will be overridden.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it is advisable to increment the api-version for this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already released for this API version and is almost like a baseline now. In future we are planning to support patch operation for individual receiver types. We will change the version then.