Skip to content

Commit 1a8ae02

Browse files
Adds identity type to patch monitor request. (#19206)
* Adds identity type to patch monitor request. * Updates description. * Makes patch body required
1 parent afd092f commit 1a8ae02

File tree

3 files changed

+44
-14
lines changed

3 files changed

+44
-14
lines changed

specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_PatchTags.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44
"subscriptionId": "00000000-0000-0000-0000-000000000000",
55
"resourceGroupName": "myResourceGroup",
66
"monitorName": "mySapMonitor",
7-
"tagsParameter": {
7+
"body": {
88
"tags": {
99
"testkey": "testvalue"
10+
},
11+
"identity": {
12+
"type": "None"
1013
}
1114
}
1215
},
@@ -28,6 +31,9 @@
2831
"lastModifiedByType": "User",
2932
"lastModifiedAt": "2021-08-19T15:10:46.196Z"
3033
},
34+
"identity": {
35+
"type": "None"
36+
},
3137
"properties": {
3238
"provisioningState": "Succeeded",
3339
"errors": [

specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/examples/workloadmonitor/monitors_PatchTags_Delete.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
"subscriptionId": "00000000-0000-0000-0000-000000000000",
55
"resourceGroupName": "myResourceGroup",
66
"monitorName": "mySapMonitor",
7-
"tagsParameter": {
8-
"tags": {}
7+
"body": {
8+
"tags": {},
9+
"identity": {
10+
"type": "None"
11+
}
912
}
1013
},
1114
"responses": {
@@ -26,6 +29,9 @@
2629
"lastModifiedByType": "User",
2730
"lastModifiedAt": "2021-08-19T15:10:46.196Z"
2831
},
32+
"identity": {
33+
"type": "None"
34+
},
2935
"properties": {
3036
"provisioningState": "Succeeded",
3137
"errors": [

specification/workloads/resource-manager/Microsoft.Workloads/preview/2021-12-01-preview/monitors.json

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,13 @@
286286
"$ref": "#/parameters/monitorNameParameter"
287287
},
288288
{
289-
"$ref": "#/parameters/TagsParameter"
289+
"in": "body",
290+
"name": "body",
291+
"required": true,
292+
"description": "The Update SAP workload monitor request body.",
293+
"schema": {
294+
"$ref": "#/definitions/UpdateMonitorRequest"
295+
}
290296
}
291297
],
292298
"responses": {
@@ -744,6 +750,9 @@
744750
"Monitor": {
745751
"type": "object",
746752
"properties": {
753+
"identity": {
754+
"$ref": "./commonTypes.json#/definitions/UserAssignedServiceIdentity"
755+
},
747756
"properties": {
748757
"x-ms-client-flatten": true,
749758
"$ref": "#/definitions/MonitorProperties",
@@ -823,6 +832,22 @@
823832
},
824833
"description": "Describes the properties of a SAP monitor."
825834
},
835+
"UpdateMonitorRequest": {
836+
"description": "Defines the request body for updating SAP monitor resource.",
837+
"type": "object",
838+
"properties": {
839+
"tags": {
840+
"description": "Gets or sets the Resource tags.",
841+
"type": "object",
842+
"additionalProperties": {
843+
"type": "string"
844+
}
845+
},
846+
"identity": {
847+
"$ref": "./commonTypes.json#/definitions/UserAssignedServiceIdentity"
848+
}
849+
}
850+
},
826851
"ProviderInstanceListResult": {
827852
"type": "object",
828853
"properties": {
@@ -843,6 +868,9 @@
843868
"ProviderInstance": {
844869
"type": "object",
845870
"properties": {
871+
"identity": {
872+
"$ref": "./commonTypes.json#/definitions/UserAssignedServiceIdentity"
873+
},
846874
"properties": {
847875
"x-ms-client-flatten": true,
848876
"$ref": "#/definitions/ProviderInstanceProperties",
@@ -1156,16 +1184,6 @@
11561184
"description": "Name of the provider instance.",
11571185
"x-ms-parameter-location": "method"
11581186
},
1159-
"TagsParameter": {
1160-
"name": "tagsParameter",
1161-
"in": "body",
1162-
"required": true,
1163-
"schema": {
1164-
"$ref": "#/definitions/Tags"
1165-
},
1166-
"description": "Request body that only contains the new Tags field",
1167-
"x-ms-parameter-location": "method"
1168-
},
11691187
"MonitorParameter": {
11701188
"name": "MonitorParameter",
11711189
"in": "body",

0 commit comments

Comments
 (0)